package cn.lopr.hfbdqn.dao;

import cn.lopr.hfbdqn.pojo.Movie;
import cn.lopr.mvc.frame.annotaion.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface MovieMapper {
    int insert(Movie record);

    int insertSelective(Movie record);

    Movie selectByPrimaryKey(Integer movieId);

    int updateByPrimaryKeySelective(Movie record);

    int updateByPrimaryKeyWithBLOBs(Movie record);

    int updateByPrimaryKey(Movie record);

    List<Movie> selectMovieByIds(List<Integer> movieIds);

    List<Movie> selectByMovieExpectationValue();

    List<Movie> selectByMovieUmulativeBoxOffice();

    List<Movie> selectByMovieExpectationValueAndPage();

    List<Movie> selectByMovieUmulativeBoxOfficeAndPage();

    List<Movie> search(@Param("s") String s);
}